.class public LPlugclass/ImageLoader;
.super Ljava/lang/Object;
.source "ImageLoader.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        LPlugclass/ImageLoader$BitmapDisplayer;,
        LPlugclass/ImageLoader$PhotoToLoad;,
        LPlugclass/ImageLoader$PhotosLoader;
    }
.end annotation


# instance fields
.field final ani_id:I

.field executorService:Ljava/util/concurrent/ExecutorService;

.field fileCache:LPlugclass/FileCache;

.field private imageViews:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Landroid/widget/ImageView;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private is_yasuo:Z

.field memoryCache:LPlugclass/MemoryCache;

.field private showtype:I

.field final stub_id:I

.field private usecache:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 2
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    const/4 v1, 0x0

    .line 50
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 36
    new-instance v0, LPlugclass/MemoryCache;

    invoke-direct {v0}, LPlugclass/MemoryCache;-><init>()V

    iput-object v0, p0, LPlugclass/ImageLoader;->memoryCache:LPlugclass/MemoryCache;

    .line 41
    new-instance v0, Ljava/util/WeakHashMap;

    invoke-direct {v0}, Ljava/util/WeakHashMap;-><init>()V

    invoke-static {v0}, Ljava/util/Collections;->synchronizedMap(Ljava/util/Map;)Ljava/util/Map;

    move-result-object v0

    iput-object v0, p0, LPlugclass/ImageLoader;->imageViews:Ljava/util/Map;

    .line 43
    iput-boolean v1, p0, LPlugclass/ImageLoader;->is_yasuo:Z

    .line 44
    iput v1, p0, LPlugclass/ImageLoader;->showtype:I

    .line 45
    iput-boolean v1, p0, LPlugclass/ImageLoader;->usecache:Z

    .line 56
    const v0, 0x7f020046

    iput v0, p0, LPlugclass/ImageLoader;->stub_id:I

    .line 57
    const v0, 0x7f020133

    iput v0, p0, LPlugclass/ImageLoader;->ani_id:I

    .line 51
    new-instance v0, LPlugclass/FileCache;

    invoke-direct {v0, p1}, LPlugclass/FileCache;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, LPlugclass/ImageLoader;->fileCache:LPlugclass/FileCache;

    .line 52
    const/4 v0, 0x5

    invoke-static {v0}, Ljava/util/concurrent/Executors;->newFixedThreadPool(I)Ljava/util/concurrent/ExecutorService;

    move-result-object v0

    iput-object v0, p0, LPlugclass/ImageLoader;->executorService:Ljava/util/concurrent/ExecutorService;

    .line 53
    return-void
.end method

.method public static CopyStream(Ljava/io/InputStream;Ljava/io/OutputStream;)V
    .locals 5
    .param p0, "is"    # Ljava/io/InputStream;
    .param p1, "os"    # Ljava/io/OutputStream;

    .prologue
    .line 302
    const/16 v0, 0x400

    .line 304
    .local v0, "buffer_size":I
    const/16 v3, 0x400

    :try_start_0
    new-array v1, v3, [B

    .line 306
    .local v1, "bytes":[B
    :goto_0
    const/4 v3, 0x0

    const/16 v4, 0x400

    invoke-virtual {p0, v1, v3, v4}, Ljava/io/InputStream;->read([BII)I

    move-result v2

    .line 307
    .local v2, "count":I
    const/4 v3, -0x1

    if-ne v2, v3, :cond_0

    .line 313
    .end local v1    # "bytes":[B
    .end local v2    # "count":I
    :goto_1
    return-void

    .line 309
    .restart local v1    # "bytes":[B
    .restart local v2    # "count":I
    :cond_0
    const/4 v3, 0x0

    invoke-virtual {p1, v1, v3, v2}, Ljava/io/OutputStream;->write([BII)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 311
    .end local v1    # "bytes":[B
    .end local v2    # "count":I
    :catch_0
    move-exception v3

    goto :goto_1
.end method

.method static synthetic access$0(LPlugclass/ImageLoader;Ljava/lang/String;)Landroid/graphics/Bitmap;
    .locals 1

    .prologue
    .line 101
    invoke-direct {p0, p1}, LPlugclass/ImageLoader;->getBitmap(Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method private decodeFile(Ljava/io/File;)Landroid/graphics/Bitmap;
    .locals 10
    .param p1, "f"    # Ljava/io/File;

    .prologue
    const/16 v9, 0x46

    const/4 v1, 0x0

    .line 145
    :try_start_0
    new-instance v3, Landroid/graphics/BitmapFactory$Options;

    invoke-direct {v3}, Landroid/graphics/BitmapFactory$Options;-><init>()V

    .line 146
    .local v3, "o":Landroid/graphics/BitmapFactory$Options;
    const/4 v7, 0x1

    iput-boolean v7, v3, Landroid/graphics/BitmapFactory$Options;->inJustDecodeBounds:Z

    .line 147
    new-instance v7, Ljava/io/FileInputStream;

    invoke-direct {v7, p1}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V

    const/4 v8, 0x0

    invoke-static {v7, v8, v3}, Landroid/graphics/BitmapFactory;->decodeStream(Ljava/io/InputStream;Landroid/graphics/Rect;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    .line 150
    const/16 v0, 0x46

    .line 151
    .local v0, "REQUIRED_SIZE":I
    iget v6, v3, Landroid/graphics/BitmapFactory$Options;->outWidth:I

    .local v6, "width_tmp":I
    iget v2, v3, Landroid/graphics/BitmapFactory$Options;->outHeight:I

    .line 152
    .local v2, "height_tmp":I
    const/4 v5, 0x1

    .line 154
    .local v5, "scale":I
    :goto_0
    div-int/lit8 v7, v6, 0x2

    if-lt v7, v9, :cond_0

    .line 155
    div-int/lit8 v7, v2, 0x2

    if-ge v7, v9, :cond_1

    .line 163
    :cond_0
    new-instance v4, Landroid/graphics/BitmapFactory$Options;

    invoke-direct {v4}, Landroid/graphics/BitmapFactory$Options;-><init>()V

    .line 164
    .local v4, "o2":Landroid/graphics/BitmapFactory$Options;
    iput v5, v4, Landroid/graphics/BitmapFactory$Options;->inSampleSize:I

    .line 165
    new-instance v7, Ljava/io/FileInputStream;

    invoke-direct {v7, p1}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V

    const/4 v8, 0x0

    invoke-static {v7, v8, v4}, Landroid/graphics/BitmapFactory;->decodeStream(Ljava/io/InputStream;Landroid/graphics/Rect;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    move-result-object v1

    .line 171
    .end local v0    # "REQUIRED_SIZE":I
    .end local v2    # "height_tmp":I
    .end local v3    # "o":Landroid/graphics/BitmapFactory$Options;
    .end local v4    # "o2":Landroid/graphics/BitmapFactory$Options;
    .end local v5    # "scale":I
    .end local v6    # "width_tmp":I
    :goto_1
    return-object v1

    .line 157
    .restart local v0    # "REQUIRED_SIZE":I
    .restart local v2    # "height_tmp":I
    .restart local v3    # "o":Landroid/graphics/BitmapFactory$Options;
    .restart local v5    # "scale":I
    .restart local v6    # "width_tmp":I
    :cond_1
    div-int/lit8 v6, v6, 0x2

    .line 158
    div-int/lit8 v2, v2, 0x2
    :try_end_0
    .catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    .line 159
    mul-int/lit8 v5, v5, 0x2

    .line 153
    goto :goto_0

    .line 168
    .end local v0    # "REQUIRED_SIZE":I
    .end local v2    # "height_tmp":I
    .end local v3    # "o":Landroid/graphics/BitmapFactory$Options;
    .end local v5    # "scale":I
    .end local v6    # "width_tmp":I
    :catch_0
    move-exception v7

    goto :goto_1
.end method

.method private getBitmap(Ljava/lang/String;)Landroid/graphics/Bitmap;
    .locals 13
    .param p1, "url"    # Ljava/lang/String;

    .prologue
    const/4 v10, 0x0

    .line 102
    iget-object v11, p0, LPlugclass/ImageLoader;->fileCache:LPlugclass/FileCache;

    invoke-virtual {v11, p1}, LPlugclass/FileCache;->getFile(Ljava/lang/String;)Ljava/io/File;

    move-result-object v5

    .line 105
    .local v5, "f":Ljava/io/File;
    invoke-direct {p0, v5}, LPlugclass/ImageLoader;->decodeFile(Ljava/io/File;)Landroid/graphics/Bitmap;

    move-result-object v1

    .line 106
    .local v1, "b":Landroid/graphics/Bitmap;
    invoke-virtual {p0}, LPlugclass/ImageLoader;->getCache()Z

    move-result v11

    if-nez v11, :cond_0

    .line 107
    if-eqz v1, :cond_0

    .line 137
    .end local v1    # "b":Landroid/graphics/Bitmap;
    :goto_0
    return-object v1

    .line 115
    .restart local v1    # "b":Landroid/graphics/Bitmap;
    :cond_0
    const/4 v2, 0x0

    .line 116
    .local v2, "bitmap":Landroid/graphics/Bitmap;
    :try_start_0
    new-instance v6, Ljava/net/URL;

    invoke-direct {v6, p1}, Ljava/net/URL;-><init>(Ljava/lang/String;)V

    .line 118
    .local v6, "imageUrl":Ljava/net/URL;
    invoke-virtual {v6}, Ljava/net/URL;->openConnection()Ljava/net/URLConnection;

    move-result-object v3

    .line 117
    check-cast v3, Ljava/net/HttpURLConnection;

    .line 119
    .local v3, "conn":Ljava/net/HttpURLConnection;
    const/16 v11, 0x7530

    invoke-virtual {v3, v11}, Ljava/net/HttpURLConnection;->setConnectTimeout(I)V

    .line 120
    const/16 v11, 0x7530

    invoke-virtual {v3, v11}, Ljava/net/HttpURLConnection;->setReadTimeout(I)V

    .line 121
    const/4 v11, 0x1

    invoke-virtual {v3, v11}, Ljava/net/HttpURLConnection;->setInstanceFollowRedirects(Z)V

    .line 122
    invoke-virtual {v3}, Ljava/net/HttpURLConnection;->getInputStream()Ljava/io/InputStream;

    move-result-object v7

    .line 123
    .local v7, "is":Ljava/io/InputStream;
    new-instance v9, Ljava/io/FileOutputStream;

    invoke-direct {v9, v5}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V

    .line 124
    .local v9, "os":Ljava/io/OutputStream;
    invoke-static {v7, v9}, LPlugclass/ImageLoader;->CopyStream(Ljava/io/InputStream;Ljava/io/OutputStream;)V

    .line 125
    invoke-virtual {v9}, Ljava/io/OutputStream;->close()V

    .line 126
    invoke-virtual {p0}, LPlugclass/ImageLoader;->getYasuo()Z

    move-result v11

    if-eqz v11, :cond_1

    .line 127
    new-instance v8, Landroid/graphics/BitmapFactory$Options;

    invoke-direct {v8}, Landroid/graphics/BitmapFactory$Options;-><init>()V

    .line 128
    .local v8, "o2":Landroid/graphics/BitmapFactory$Options;
    new-instance v11, Ljava/io/FileInputStream;

    invoke-direct {v11, v5}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V

    const/4 v12, 0x0

    invoke-static {v11, v12, v8}, Landroid/graphics/BitmapFactory;->decodeStream(Ljava/io/InputStream;Landroid/graphics/Rect;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 129
    .local v0, "a":Landroid/graphics/Bitmap;
    move-object v2, v0

    .end local v0    # "a":Landroid/graphics/Bitmap;
    .end local v8    # "o2":Landroid/graphics/BitmapFactory$Options;
    :goto_1
    move-object v1, v2

    .line 134
    goto :goto_0

    .line 131
    :cond_1
    invoke-direct {p0, v5}, LPlugclass/ImageLoader;->decodeFile(Ljava/io/File;)Landroid/graphics/Bitmap;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v2

    goto :goto_1

    .line 135
    .end local v3    # "conn":Ljava/net/HttpURLConnection;
    .end local v6    # "imageUrl":Ljava/net/URL;
    .end local v7    # "is":Ljava/io/InputStream;
    .end local v9    # "os":Ljava/io/OutputStream;
    :catch_0
    move-exception v4

    .line 136
    .local v4, "ex":Ljava/lang/Exception;
    invoke-virtual {v4}, Ljava/lang/Exception;->printStackTrace()V

    move-object v1, v10

    .line 137
    goto :goto_0
.end method

.method private queuePhoto(Ljava/lang/String;Landroid/widget/ImageView;)V
    .locals 3
    .param p1, "url"    # Ljava/lang/String;
    .param p2, "imageView"    # Landroid/widget/ImageView;

    .prologue
    .line 97
    new-instance v0, LPlugclass/ImageLoader$PhotoToLoad;

    invoke-direct {v0, p0, p1, p2}, LPlugclass/ImageLoader$PhotoToLoad;-><init>(LPlugclass/ImageLoader;Ljava/lang/String;Landroid/widget/ImageView;)V

    .line 98
    .local v0, "p":LPlugclass/ImageLoader$PhotoToLoad;
    iget-object v1, p0, LPlugclass/ImageLoader;->executorService:Ljava/util/concurrent/ExecutorService;

    new-instance v2, LPlugclass/ImageLoader$PhotosLoader;

    invoke-direct {v2, p0, v0}, LPlugclass/ImageLoader$PhotosLoader;-><init>(LPlugclass/ImageLoader;LPlugclass/ImageLoader$PhotoToLoad;)V

    invoke-interface {v1, v2}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;

    .line 99
    return-void
.end method


# virtual methods
.method public DisplayImage(Ljava/lang/String;Landroid/widget/ImageView;)V
    .locals 3
    .param p1, "url"    # Ljava/lang/String;
    .param p2, "imageView"    # Landroid/widget/ImageView;

    .prologue
    .line 61
    iget-object v1, p0, LPlugclass/ImageLoader;->imageViews:Ljava/util/Map;

    invoke-interface {v1, p2, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 64
    iget-object v1, p0, LPlugclass/ImageLoader;->memoryCache:LPlugclass/MemoryCache;

    invoke-virtual {v1, p1}, LPlugclass/MemoryCache;->get(Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 65
    .local v0, "bitmap":Landroid/graphics/Bitmap;
    if-eqz v0, :cond_0

    .line 67
    invoke-virtual {p2, v0}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    .line 77
    :goto_0
    return-void

    .line 70
    :cond_0
    invoke-direct {p0, p1, p2}, LPlugclass/ImageLoader;->queuePhoto(Ljava/lang/String;Landroid/widget/ImageView;)V

    .line 71
    invoke-virtual {p0}, LPlugclass/ImageLoader;->getshowtype()I

    move-result v1

    const/4 v2, 0x1

    if-ne v1, v2, :cond_1

    .line 72
    const v1, 0x7f020133

    invoke-virtual {p2, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0

    .line 74
    :cond_1
    const v1, 0x7f020046

    invoke-virtual {p2, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0
.end method

.method public SetUseCache(Z)V
    .locals 0
    .param p1, "fds"    # Z

    .prologue
    .line 79
    iput-boolean p1, p0, LPlugclass/ImageLoader;->usecache:Z

    .line 80
    return-void
.end method

.method public Yasuo(Z)V
    .locals 0
    .param p1, "yasuo"    # Z

    .prologue
    .line 85
    iput-boolean p1, p0, LPlugclass/ImageLoader;->is_yasuo:Z

    .line 86
    return-void
.end method

.method public clearCache()V
    .locals 1

    .prologue
    .line 297
    iget-object v0, p0, LPlugclass/ImageLoader;->memoryCache:LPlugclass/MemoryCache;

    invoke-virtual {v0}, LPlugclass/MemoryCache;->clear()V

    .line 298
    iget-object v0, p0, LPlugclass/ImageLoader;->fileCache:LPlugclass/FileCache;

    invoke-virtual {v0}, LPlugclass/FileCache;->clear()V

    .line 299
    return-void
.end method

.method public getCache()Z
    .locals 1

    .prologue
    .line 82
    iget-boolean v0, p0, LPlugclass/ImageLoader;->usecache:Z

    return v0
.end method

.method public getYasuo()Z
    .locals 1

    .prologue
    .line 88
    iget-boolean v0, p0, LPlugclass/ImageLoader;->is_yasuo:Z

    return v0
.end method

.method public getshowtype()I
    .locals 1

    .prologue
    .line 94
    iget v0, p0, LPlugclass/ImageLoader;->showtype:I

    return v0
.end method

.method imageViewReused(LPlugclass/ImageLoader$PhotoToLoad;)Z
    .locals 3
    .param p1, "photoToLoad"    # LPlugclass/ImageLoader$PhotoToLoad;

    .prologue
    .line 265
    iget-object v1, p0, LPlugclass/ImageLoader;->imageViews:Ljava/util/Map;

    iget-object v2, p1, LPlugclass/ImageLoader$PhotoToLoad;->imageView:Landroid/widget/ImageView;

    invoke-interface {v1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 266
    .local v0, "tag":Ljava/lang/String;
    if-eqz v0, :cond_0

    iget-object v1, p1, LPlugclass/ImageLoader$PhotoToLoad;->url:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_1

    .line 267
    :cond_0
    const/4 v1, 0x1

    .line 268
    :goto_0
    return v1

    :cond_1
    const/4 v1, 0x0

    goto :goto_0
.end method

.method public showtype(I)V
    .locals 0
    .param p1, "dotype"    # I

    .prologue
    .line 91
    iput p1, p0, LPlugclass/ImageLoader;->showtype:I

    .line 92
    return-void
.end method

.method public toRoundBitmap(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;
    .locals 28
    .param p1, "bitmap"    # Landroid/graphics/Bitmap;

    .prologue
    .line 174
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v23

    .line 175
    .local v23, "width":I
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v14

    .line 178
    .local v14, "height":I
    move/from16 v0, v23

    if-gt v0, v14, :cond_0

    .line 179
    div-int/lit8 v24, v23, 0x2

    move/from16 v0, v24

    int-to-float v0, v0

    move/from16 v20, v0

    .line 180
    .local v20, "roundPx":F
    const/16 v22, 0x0

    .line 181
    .local v22, "top":F
    move/from16 v0, v23

    int-to-float v5, v0

    .line 182
    .local v5, "bottom":F
    const/4 v15, 0x0

    .line 183
    .local v15, "left":F
    move/from16 v0, v23

    int-to-float v0, v0

    move/from16 v19, v0

    .line 184
    .local v19, "right":F
    move/from16 v14, v23

    .line 185
    const/4 v11, 0x0

    .line 186
    .local v11, "dst_left":F
    const/4 v13, 0x0

    .line 187
    .local v13, "dst_top":F
    move/from16 v0, v23

    int-to-float v12, v0

    .line 188
    .local v12, "dst_right":F
    move/from16 v0, v23

    int-to-float v10, v0

    .line 204
    .local v10, "dst_bottom":F
    :goto_0
    sget-object v24, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    .line 203
    move/from16 v0, v23

    move-object/from16 v1, v24

    invoke-static {v0, v14, v1}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v16

    .line 205
    .local v16, "output":Landroid/graphics/Bitmap;
    new-instance v6, Landroid/graphics/Canvas;

    move-object/from16 v0, v16

    invoke-direct {v6, v0}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 207
    .local v6, "canvas":Landroid/graphics/Canvas;
    const v8, -0xbdbdbe

    .line 208
    .local v8, "color":I
    new-instance v17, Landroid/graphics/Paint;

    invoke-direct/range {v17 .. v17}, Landroid/graphics/Paint;-><init>()V

    .line 209
    .local v17, "paint":Landroid/graphics/Paint;
    new-instance v21, Landroid/graphics/Rect;

    float-to-int v0, v15

    move/from16 v24, v0

    move/from16 v0, v22

    float-to-int v0, v0

    move/from16 v25, v0

    move/from16 v0, v19

    float-to-int v0, v0

    move/from16 v26, v0

    float-to-int v0, v5

    move/from16 v27, v0

    move-object/from16 v0, v21

    move/from16 v1, v24

    move/from16 v2, v25

    move/from16 v3, v26

    move/from16 v4, v27

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 210
    .local v21, "src":Landroid/graphics/Rect;
    new-instance v9, Landroid/graphics/Rect;

    float-to-int v0, v11

    move/from16 v24, v0

    float-to-int v0, v13

    move/from16 v25, v0

    float-to-int v0, v12

    move/from16 v26, v0

    float-to-int v0, v10

    move/from16 v27, v0

    move/from16 v0, v24

    move/from16 v1, v25

    move/from16 v2, v26

    move/from16 v3, v27

    invoke-direct {v9, v0, v1, v2, v3}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 211
    .local v9, "dst":Landroid/graphics/Rect;
    new-instance v18, Landroid/graphics/RectF;

    move-object/from16 v0, v18

    invoke-direct {v0, v9}, Landroid/graphics/RectF;-><init>(Landroid/graphics/Rect;)V

    .line 213
    .local v18, "rectF":Landroid/graphics/RectF;
    const/16 v24, 0x1

    move-object/from16 v0, v17

    move/from16 v1, v24

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 215
    const/16 v24, 0x0

    const/16 v25, 0x0

    const/16 v26, 0x0

    const/16 v27, 0x0

    move/from16 v0, v24

    move/from16 v1, v25

    move/from16 v2, v26

    move/from16 v3, v27

    invoke-virtual {v6, v0, v1, v2, v3}, Landroid/graphics/Canvas;->drawARGB(IIII)V

    .line 216
    const v24, -0xbdbdbe

    move-object/from16 v0, v17

    move/from16 v1, v24

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 217
    move-object/from16 v0, v18

    move/from16 v1, v20

    move/from16 v2, v20

    move-object/from16 v3, v17

    invoke-virtual {v6, v0, v1, v2, v3}, Landroid/graphics/Canvas;->drawRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V

    .line 219
    new-instance v24, Landroid/graphics/PorterDuffXfermode;

    sget-object v25, Landroid/graphics/PorterDuff$Mode;->SRC_IN:Landroid/graphics/PorterDuff$Mode;

    invoke-direct/range {v24 .. v25}, Landroid/graphics/PorterDuffXfermode;-><init>(Landroid/graphics/PorterDuff$Mode;)V

    move-object/from16 v0, v17

    move-object/from16 v1, v24

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;

    .line 220
    move-object/from16 v0, p1

    move-object/from16 v1, v21

    move-object/from16 v2, v17

    invoke-virtual {v6, v0, v1, v9, v2}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    .line 221
    return-object v16

    .line 190
    .end local v5    # "bottom":F
    .end local v6    # "canvas":Landroid/graphics/Canvas;
    .end local v8    # "color":I
    .end local v9    # "dst":Landroid/graphics/Rect;
    .end local v10    # "dst_bottom":F
    .end local v11    # "dst_left":F
    .end local v12    # "dst_right":F
    .end local v13    # "dst_top":F
    .end local v15    # "left":F
    .end local v16    # "output":Landroid/graphics/Bitmap;
    .end local v17    # "paint":Landroid/graphics/Paint;
    .end local v18    # "rectF":Landroid/graphics/RectF;
    .end local v19    # "right":F
    .end local v20    # "roundPx":F
    .end local v21    # "src":Landroid/graphics/Rect;
    .end local v22    # "top":F
    :cond_0
    div-int/lit8 v24, v14, 0x2

    move/from16 v0, v24

    int-to-float v0, v0

    move/from16 v20, v0

    .line 191
    .restart local v20    # "roundPx":F
    sub-int v24, v23, v14

    div-int/lit8 v24, v24, 0x2

    move/from16 v0, v24

    int-to-float v7, v0

    .line 192
    .local v7, "clip":F
    move v15, v7

    .line 193
    .restart local v15    # "left":F
    move/from16 v0, v23

    int-to-float v0, v0

    move/from16 v24, v0

    sub-float v19, v24, v7

    .line 194
    .restart local v19    # "right":F
    const/16 v22, 0x0

    .line 195
    .restart local v22    # "top":F
    int-to-float v5, v14

    .line 196
    .restart local v5    # "bottom":F
    move/from16 v23, v14

    .line 197
    const/4 v11, 0x0

    .line 198
    .restart local v11    # "dst_left":F
    const/4 v13, 0x0

    .line 199
    .restart local v13    # "dst_top":F
    int-to-float v12, v14

    .line 200
    .restart local v12    # "dst_right":F
    int-to-float v10, v14

    .restart local v10    # "dst_bottom":F
    goto/16 :goto_0
.end method
